<?php
            require_once('./classes/mysql.php');
            require_once('./classes/user.class.php');
            require_once './classes/news_manager.class.php';
 if(session_id() == "") session_start();


// Si l'utilisateur n'est pas logué, executer ->
		$cryptinstall="./php/crypt/cryptographp.fct.php";
		include $cryptinstall;
		 
		 
/************************************************/
		 
		 
include ("header.php");


if (isset($_GET["page"])){
	switch($_GET["page"]){
		case 'accueil':
			include('pages/accueil.php');
			break;		
		case 'equipes':
			include('pages/equipes.php');
			break;
		case 'resultats':
			include('pages/resultats.php');
			break;
		case 'photos':
			include('pages/photos.php');
			break;
		case 'contacts':
			include('pages/contacts.php');
			break;
		case 'liens':
			include('pages/liens.php');
			break;
		case 'infos':
			include('pages/infos.php');
			break;
		case 'sponsors':
			include('pages/sponsors.php');
			break;
                case 'ou_nous_trouver':
                        include('pages/ou_nous_trouver.php');
                    break;
                case 'inscriptions':
                        include('pages/inscriptions.php');
                        break;
                case 'entrainements':
                        include ('pages/entrainements.php');
                        break;
		
                    
                case 'manage':
                        include('manage/manage_mainpage.php');
                        break;
			
	}
}else include('pages/accueil.php');
?>
<?php
include("footer.php");
?>